//
//  HYFSettingViewController.m
//  hyf-BaiSi
//
//  Created by Bill on 16/6/16.
//  Copyright © 2016年 hyf. All rights reserved.
//

#import "HYFSettingViewController.h"

@interface HYFSettingViewController ()



@end



@implementation HYFSettingViewController


-(void)viewDidLoad{
    [super viewDidLoad];

    //创建返回按钮文字部分
    UIButton *goback=[UIButton buttonWithType:UIButtonTypeCustom];
    [goback setTitle:@"返回" forState:UIControlStateNormal];
    [goback setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [goback setTitleColor:[UIColor redColor] forState:UIControlStateHighlighted];
    //创建按钮图片部分
    [goback setImage:[UIImage imageNamed:@"navigationButtonReturn"] forState:UIControlStateNormal];
    [goback setImage:[UIImage imageNamed:@"navigationButtonReturnClick"] forState:UIControlStateHighlighted];
    
    [goback addTarget:self action:@selector(ff) forControlEvents:UIControlEventTouchUpInside];
    [goback sizeToFit];
    goback.contentEdgeInsets=UIEdgeInsetsMake(0, -20, 0, 0);
    
    self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithCustomView:goback];

}


-(void)ff{
    //实行返回
    [self.navigationController popViewControllerAnimated:YES];
    NSLog(@"puni");
}
@end
